﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="InsertPcPart.aspx.cs" Inherits="InsertPcPart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="oncenter">
<h2 style="font-size: 16px; color: #3f3f3f;">Внеси нов компјутерски дел во магацинот</h2>
 <table>
                    <tr>
                        <td align="left">
                            <h3 style="font-size: 12px; color: #3f3f3f;">Категорија:</h3></td>
                        <td align="right">
                            <asp:DropDownList ID="ddlKategorija" Width="160px" runat="server">
                                <asp:ListItem>Одбери категорија</asp:ListItem>
                                <asp:ListItem>Монитори</asp:ListItem>
                                <asp:ListItem>Куќишта</asp:ListItem>
                                <asp:ListItem>Напојувања</asp:ListItem>
                                <asp:ListItem>Матични плочи</asp:ListItem>
                                <asp:ListItem>Процесори</asp:ListItem>
                                <asp:ListItem>Графички картички</asp:ListItem>
                                <asp:ListItem>Рам мемории</asp:ListItem>
								<asp:ListItem>Тврди дискови</asp:ListItem>
								<asp:ListItem>Оптички уреди</asp:ListItem>
								<asp:ListItem>Тастатури</asp:ListItem>
								<asp:ListItem>Глувци</asp:ListItem>
								<asp:ListItem>Мрежна опрема</asp:ListItem>
                            </asp:DropDownList></td> 
						<td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                    ErrorMessage="Одбери категорија" ControlToValidate="ddlKategorija"
                                    InitialValue="Одбери категорија"  Display="None" ForeColor="Red"></asp:RequiredFieldValidator></td>	
													
                    </tr>
                    <tr>
                        <td align="left">
                            <h3 style="font-size: 12px; color: #3f3f3f;">Шифра:</h3></td>
                        <td align="right">
                            <asp:TextBox ID="txtSifra" runat="server" Width="150px"></asp:TextBox>
                        </td>
						<td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ErrorMessage="Внеси шифра" ControlToValidate="txtSifra" 
                                ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
								</td>	
                    </tr>
                    <tr>
                        <td align="left">
                            <h3 style="font-size: 12px; color: #3f3f3f;">Производ:</h3></td>
                        <td align="right">
                            <asp:TextBox ID="txtProizvod" runat="server" Width="150px"></asp:TextBox>
                        </td>
						<td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ErrorMessage="Внеси производ" ControlToValidate="txtProizvod" 
                                ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
								</td>
                    </tr>
                    <tr>
                        <td align="left" class="style1">
                            <h3 style="font-size: 12px; color: #3f3f3f;">Цена:</h3></td>
                        <td align="right" class="style1">
                            <asp:TextBox ID="txtCena" runat="server" Width="150px"></asp:TextBox>
                        </td>
						<td class="style1">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ErrorMessage="Внеси цена" ControlToValidate="txtCena" 
                                ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
								</td>
								
                    </tr>
                    <tr>
                        <td align="left">
                            <h3 style="font-size: 12px; color: #3f3f3f;">Гаранција:</h3></td>
                        <td align="right">
                            <asp:TextBox ID="txtGarancija" runat="server" Width="150px"></asp:TextBox>
                        </td>
						<td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                ErrorMessage="Внеси гаранција" ControlToValidate="txtGarancija" 
                                ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
								</td>
                    </tr>
                    <tr>
                        <td align="left">
                            <h3 style="font-size: 12px; color: #3f3f3f;">Парчиња во залиха:</h3></td>
                        <td align="right">
                            <asp:TextBox ID="txtParcinjaZ" runat="server" Width="150px"></asp:TextBox>
                        </td>
						<td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                ErrorMessage="Внеси залиха" ControlToValidate="txtParcinjaZ" 
                                ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
								</td>
                    </tr>
                    <tr>
                        <td align="left">
                            <h3 style="font-size: 12px; color: #3f3f3f;">Нарачани парчиња:</h3></td>
                        <td align="right">
                            <asp:TextBox ID="txtParcinjaN" runat="server" Width="150px"></asp:TextBox>
                        </td>
						<td><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                ErrorMessage="Внеси парчиња" ControlToValidate="txtParcinjaN" 
                                ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
                        </td>
                     </tr>
                    <tr>
                        <td></td>
                        <td>
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="left">
                            <asp:Label ID="lblInfo" runat="server" ForeColor="#009900"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="left">
                            <asp:Button ID="btnVnesi" runat="server" onclick="btnVnesi_Click" 
                                Text="Внеси во база" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="left">
                            <asp:Label ID="lblError" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>

                </div>
</asp:Content>

